package com.koron.operation.dispatch.mapper;

import com.koron.operation.dispatch.bean.EquipmentAccidentBean;
import com.koron.operation.dispatch.bean.dto.AccidentDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EquipmentAccidentMapper {
    int deleteByPrimaryKey(String id);

    int insert(EquipmentAccidentBean record);

    int insertSelective(EquipmentAccidentBean record);

    EquipmentAccidentBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(EquipmentAccidentBean record);

    int updateByPrimaryKey(EquipmentAccidentBean record);

    //事故跳闸列表
    List<EquipmentAccidentBean> queryByAll(AccidentDto dto);

    int deleteById(@Param("id")String id);

    List<EquipmentAccidentBean> queryAllByStartTimeBetween(@Param("minStartTime")Date minStartTime,@Param("maxStartTime")Date maxStartTime);






}
